<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateSystemModuleInfosTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('system_module_infos', function (Blueprint $table) {
            $table->bigIncrements('id')->comment('自增ID');
            $table->string('module', 200)->comment('模块');
            $table->string('key', 200)->comment('key');
            $table->string('value', 2000)->comment('value');

            $table->timestamps();
            $table->softDeletes();

            $table->engine = 'InnoDB';

        });
        DB::statement("alter table `system_module_infos` comment'系统模块信息表'");

    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('system_module_infos');
    }
}
